<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>query_string (OAuth::RequestProxy::Net::HTTP::HTTPRequest)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File patches.rb, line 34</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">query_string</span>
        <span class="ruby-identifier">params</span> = [ <span class="ruby-identifier">query_params</span>, <span class="ruby-identifier">auth_header_params</span> ]
        <span class="ruby-identifier">is_form_urlencoded</span> = <span class="ruby-identifier">request</span>[<span class="ruby-value str">'Content-Type'</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">request</span>[<span class="ruby-value str">'Content-Type'</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'application/x-www-form-urlencoded'</span>
        <span class="ruby-identifier">params</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">post_params</span> <span class="ruby-keyword kw">if</span> [<span class="ruby-value str">'POST'</span>, <span class="ruby-value str">'PUT'</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">method</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">is_form_urlencoded</span>
        <span class="ruby-identifier">params</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'&amp;'</span>)
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>